package factory
;

import extra.Position;


public final class Constants {
	public static final int TRUE = 1;
	public static final int FALSE = -1;
	
	public static final int FREE = 0;
	public static final int NOT_FREE = 1;
	
	//Pixels
	public static final int BOX_HEIGHT=30; 
	public static final int BOX_WIDTH=30;
	
	
	//CONSTANTS TO SAVE OR LOAD
	public static final int WORLD_ID = 0;
	public static final int BOX_WORLD_ID = 1;
	public static final int OBJECT_WORLD_ID = 2;	
	
	
	public static final double CalculateDistance(Position p1,Position p2){
		double x1= p1.getX();
		double x2= p2.getX();
		double y1= p1.getY();
		double y2= p2.getY();
		
		return Math.sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2)));
	}
	
	
}

